---
page_title: "cloudflare_custom_pages Resource - Cloudflare"
subcategory: ""
description: |-
  Provides a resource which manages Cloudflare custom error pages.
---

# cloudflare_custom_pages (Resource)

Provides a resource which manages Cloudflare custom error pages.

## Example Usage

```terraform
resource "cloudflare_custom_pages" "example" {
  zone_id = "0da42c8d2132a9ddaf714f9e7c920711"
  type    = "basic_challenge"
  url     = "https://example.com/challenge.html"
  state   = "customized"
}
```
<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `type` (String) The type of custom page you wish to update. Available values: `basic_challenge`, `waf_challenge`, `waf_block`, `ratelimit_block`, `country_challenge`, `ip_block`, `under_attack`, `500_errors`, `1000_errors`, `managed_challenge`.
- `url` (String) URL of where the custom page source is located.

### Optional

- `account_id` (String) The account identifier to target for the resource. Conflicts with `zone_id`.
- `state` (String) Managed state of the custom page. Available values: `default`, `customized`.
- `zone_id` (String) The zone identifier to target for the resource. Conflicts with `account_id`.

### Read-Only

- `id` (String) The ID of this resource.

## Import

Import is supported using the following syntax:

```shell
$ terraform import cloudflare_custom_pages.example <resource_level>/<resource_id>/<custom_page_type>
```
